package com.aipp.mall.h5.mapper;

import com.aipp.mall.h5.domain.entity.Order;
import com.aipp.mall.h5.domain.vo.CountOrderVO;
import com.aipp.mall.h5.domain.vo.H5OrderVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单表Mapper接口
 *
 * @author zcc
 */
public interface OrderMapper extends BaseMapper<Order> {

    IPage<H5OrderVO> orderPage(IPage<H5OrderVO> page, @Param("status") Integer status, @Param("memberId") Long memberId);

    H5OrderVO selectOrderDetail(Long orderId);

    CountOrderVO countByStatusAndMemberId(Long memberId);

    Integer cancelBatch(@Param("list") List<Order> orderList);

}
